import 'package:flutter/material.dart';

class ListViewHorizonPage extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('listview水平组件'),
        ),
       body: Container(
         height: 200,
         child: ListView(
           scrollDirection: Axis.horizontal,
           children: <Widget>[
             Container(
               width: 160.0,
               color: Colors.red,
             ),
             Container(
               width: 160.0,
               color: Colors.blue,
             ),
             Container(
               width: 160.0,
               color: Colors.green,
             ),
             Container(
               width: 160.0,
               color: Colors.yellow,
               child: Column(
                 children: <Widget>[
                   Text('1111'),
                   Text('222'),
                   Text('333'),
                   Text('444'),


                 ],
               ),
             ),
           ],
         ),
       ),
      ),
    );

  }

}